package com.gdougms.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.sql.Timestamp;
/**@Title
 * @Description 公告实体类。
 * @Author iceF
 * @Date 2021/6/21
*/
@Component
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Announcement implements Serializable {
    private Integer id;
    private Integer pubuserId;
    private String title;
    private String content;
    private String fileUrl;
    private Timestamp pubdate;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public Timestamp getPubdate(){
        return this.pubdate;
    }
}
